package com.dearbinge.data.pojo.comment;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.util.Date;

/**
 * 回复实体类
 *
 * @author wes
 * @date 2019/1/3
 */
@Api("回复表BO")
@TableName("reply")
public class Reply extends Model<Reply> {

    /**
     * 回复表主键ID
     */
    @ApiModelProperty("回复表主键ID")
    @TableId(value = "reply_id",type = IdType.AUTO)
    private Integer replyId;

    /**
     * 用户id
     */
    @ApiModelProperty("用户id")
    @TableField(value = "user_id 必传")
    private String userId;

    /**
     * 评论id
     */
    @ApiModelProperty("评论id")
    @TableField(value = "comment_id 必传")
    private String commentId;

    /**
     * 实体id 对应信息表的id
     */
    @ApiModelProperty("实体id 对应信息表的id ")
    @TableField(value = "entity_id 必传")
    private String entityId;

    /**
     * 创建时间
     */
    @ApiModelProperty("创建时间")
    @TableField(value = "create_time")
    private Date createTime;
    /**
     * 修改时间
     */
    @ApiModelProperty("修改时间")
    @TableField(value = "modify_time")
    private Date modifyTime;

    /**
     * 创建人
     */
    @ApiModelProperty("创建人")
    @TableField(value = "create_by")
    private String createBy;

    /**
     * 修改人
     */
    @ApiModelProperty("修改人")
    @TableField(value = "modify_by")
    private String modifyBy;

    /**
     * 是否删除（0：否  1：是）
     */
    @ApiModelProperty("是否删除（0：否  1：是）")
    @TableField(value = "is_deleted")
    private Boolean isDeleted;

    /**
     * 内容
     */
    @ApiModelProperty("内容")
    @TableField(value = "content 必传")
    private String content;

    /**
     * 类型（1：生活  2：商品  3：秀场）
     */
    @ApiModelProperty("类型（1：生活  2：商品  3：秀场）必传")
    @TableField(value = "message_type")
    private Integer messageType;


    public Integer getMessageType() {
        return messageType;
    }

    public void setMessageType(Integer messageType) {
        this.messageType = messageType;
    }

    public Integer getReplyId() {
        return replyId;
    }

    public void setReplyId(Integer replyId) {
        this.replyId = replyId;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId == null ? null : userId.trim();
    }

    public String getCommentId() {
        return commentId;
    }

    public void setCommentId(String commentId) {
        this.commentId = commentId == null ? null : commentId.trim();
    }

    public String getEntityId() {
        return entityId;
    }

    public void setEntityId(String entityId) {
        this.entityId = entityId == null ? null : entityId.trim();
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getModifyTime() {
        return modifyTime;
    }

    public void setModifyTime(Date modifyTime) {
        this.modifyTime = modifyTime;
    }

    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy == null ? null : createBy.trim();
    }

    public String getModifyBy() {
        return modifyBy;
    }

    public void setModifyBy(String modifyBy) {
        this.modifyBy = modifyBy == null ? null : modifyBy.trim();
    }

    public Boolean getIsDeleted() {
        return isDeleted;
    }

    public void setIsDeleted(Boolean isDeleted) {
        this.isDeleted = isDeleted;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content == null ? null : content.trim();
    }

    /**
     * 主键值
     */
    @Override
    protected Serializable pkVal() {
        return null;
    }
}